function ent(){
	var result = $("#keyBox").text();
	var userid = $.trim($("#user").val());
	var pwd = $("#password").val();
	var codeKey = $("#key_code").val();
	var pwdd = $("#password");
	if(!userid || !pwd){
		alert("账号或密码不可为空");
		return;
	}else if(userid.length < 6 || userid.length > 15){
		alert("用户名长度不可超过6位或大于15位");
		return;
	}else if(pwd.length < 6 || pwd.length > 15){
		alert("密码长度不可超过6位或大于15位");
		pwdd.val("");
		return;
	}else if(!isNaN(userid) || !isNaN(pwd)){
		alert("用户名或密码不可为纯数字");
		pwdd.val("");
		changeKeyCode();
		return;
	}else if(codeKey != result){
		alert("验证码输入不正确");
		changeKeyCode();
		pwdd.val("");
		return;
	}else if(codeKey.length == 0){
		alert("请输入验证码");
		changeKeyCode();
		return;
	}else{
		var url = firstUrl + loginUrl;
		var param = {username:userid,password:pwd};
		$.post(url,param,function(d){
			if(d.result == 1){
				alert("登录成功，即将跳转");
				changePage4();
				sessionStorage.token = d.token;
			}else{
				alert(d.message);
				return;
			}
		})
	}
}